package com.atmilan.quartz.mapper;

import com.atmilan.quartz.model.entity.bellettini.BellettiniProduct;
import com.atmilan.quartz.model.entity.bellettini.BellettiniProductSku;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * 商品映射表
 */
@DS("source_hiku")
public interface BellettiniProductSkuMapper extends BaseMapper<BellettiniProductSku> {

    @Update("truncate table bellettini_product_sku")
    void deleteAll();
    
    @Update("truncate table bellettini_product_sku_back")
    void deleteProductSkuBack();
    
    @Update("insert into leam_product_sku_back select * from bellettini_product_sku")
    void copyProductSkuBack();
    
}
